home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 5.00 Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX" Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX" Begin VB.Form frmStart AutoRedraw = -1 'True BackColor = &H80000004& Caption = "Boomerang 1.2 by Sushant Pandurangi" ClientHeight = 4605 ClientLeft = 165 ClientTop = 450 ClientWidth = 7350 BeginProperty Font Name = "Tahoma" Size = 8.25 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Icon = "frmMain.frx":0000 LinkTopic = "Form1" ScaleHeight = 4605 ScaleWidth = 7350 StartUpPosition = 2 'CenterScreen Begin ComctlLib.Toolbar tbToolbar Align = 1 'Align Top Height = 660 Left = 0 TabIndex = 3 Top = 0 Width = 7350 _ExtentX = 12965 _ExtentY = 1164 ButtonWidth = 1032 ButtonHeight = 1005 AllowCustomize = 0 'False Appearance = 1 ImageList = "imlToolbar" _Version = 327682 BeginProperty Buttons {0713E452-850A-101B-AFC0-4210102A8DA7} NumButtons = 16 BeginProperty Button1 {0713F354-850A-101B-AFC0-4210102A8DA7} Key = "CONNECT" Object.ToolTipText = "Displays the connection dialog" Object.Tag = "" ImageIndex = 1 EndProperty BeginProperty Button2 {0713F354-850A-101B-AFC0-4210102A8DA7} Enabled = 0 'False Key = "DISCONNECT" Object.ToolTipText = "Disconnects from remote computer" Object.Tag = "" ImageIndex = 2 EndProperty BeginProperty Button3 {0713F354-850A-101B-AFC0-4210102A8DA7} Key = "" Object.Tag = "" Style = 3 MixedState = -1 'True EndProperty BeginProperty Button4 {0713F354-850A-101B-AFC0-4210102A8DA7} Key = "URL" Object.ToolTipText = "Displays the URL shell dialog. (Ctrl+F3)" Object.Tag = "" ImageIndex = 15 EndProperty BeginProperty Button5 {0713F354-850A-101B-AFC0-4210102A8DA7} Key = "MESSAGE" Object.ToolTipText = "Send pop-up messages to the computer. (Ctrl+F4)" Object.Tag = "" ImageIndex = 3 EndProperty BeginProperty Button6 {0713F354-850A-101B-AFC0-4210102A8DA7} Key = "TOOLS" Object.ToolTipText = "Brings up the Tools window. (Ctrl+F5)" Object.Tag = "" ImageIndex = 10 EndProperty BeginProperty Button7 {0713F354-850A-101B-AFC0-4210102A8DA7} Enabled = 0 'False Key = "" Object.Tag = "" Style = 3 MixedState = -1 'True EndProperty BeginProperty Button8 {0713F354-850A-101B-AFC0-4210102A8DA7} Key = "DESKTOP" Object.ToolTipText = "Shows the user's desktop." Object.Tag = "" ImageIndex = 6 EndProperty BeginProperty Button9 {0713F354-850A-101B-AFC0-4210102A8DA7} Key = "" Object.Tag = "" Style = 3 MixedState = -1 'True EndProperty BeginProperty Button10 {0713F354-850A-101B-AFC0-4210102A8DA7} Key = "INFO" Object.ToolTipText = "Shows System Information." Object.Tag = "" ImageIndex = 16 EndProperty BeginProperty Button11 {0713F354-850A-101B-AFC0-4210102A8DA7} Key = "" Object.Tag = "" Style = 3 MixedState = -1 'True EndProperty BeginProperty Button12 {0713F354-850A-101B-AFC0-4210102A8DA7} Key = "DOWNLOAD" Object.ToolTipText = "Save a remote file to your local system. (Ctrl+F1)" Object.Tag = "" ImageIndex = 8 EndProperty BeginProperty Button13 {0713F354-850A-101B-AFC0-4210102A8DA7} Key = "DELETE" Object.ToolTipText = "Delete selected remote file. (Ctrl+F2)" Object.Tag = "" ImageIndex = 7 EndProperty BeginProperty Button14 {0713F354-850A-101B-AFC0-4210102A8DA7} Key = "" Object.Tag = "" Style = 3 MixedState = -1 'True EndProperty BeginProperty Button15 {0713F354-850A-101B-AFC0-4210102A8DA7} Key = "HELP" Object.ToolTipText = "View Help Contents. (F1)" Object.Tag = "" ImageIndex = 13 EndProperty BeginProperty Button16 {0713F354-850A-101B-AFC0-4210102A8DA7} Key = "EXIT" Object.ToolTipText = "Exit the application. (Ctrl+X)" Object.Tag = "" ImageIndex = 11 EndProperty EndProperty End Begin ComctlLib.TreeView tvTreeView Height = 3405 Left = 0 TabIndex = 2 Top = 675 Width = 2145 _ExtentX = 3784 _ExtentY = 6006 _Version = 327682 Indentation = 344 LabelEdit = 1 LineStyle = 1 Sorted = -1 'True Style = 7 ImageList = "imlDrives" BorderStyle = 1 Appearance = 1 BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} Name = "Tahoma" Size = 8.25 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty End Begin ComctlLib.ListView lvFiles Height = 3405 Left = 2205 TabIndex = 1 Top = 675 Width = 3000 _ExtentX = 5292 _ExtentY = 6006 View = 3 LabelEdit = 1 LabelWrap = -1 'True HideSelection = -1 'True _Version = 327682 Icons = "imgList" SmallIcons = "imgList" ForeColor = -2147483640 BackColor = -2147483643 BorderStyle = 1 Appearance = 1 BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} Name = "Tahoma" Size = 8.25 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty NumItems = 3 BeginProperty ColumnHeader(1) {0713E8C7-850A-101B-AFC0-4210102A8DA7} Key = "" Object.Tag = "" Text = "File Name" Object.Width = 2540 EndProperty BeginProperty ColumnHeader(2) {0713E8C7-850A-101B-AFC0-4210102A8DA7} SubItemIndex = 1 Key = "" Object.Tag = "" Text = "File Size" Object.Width = 1411 EndProperty BeginProperty ColumnHeader(3) {0713E8C7-850A-101B-AFC0-4210102A8DA7} SubItemIndex = 2 Key = "" Object.Tag = "" Text = "Timestamp" Object.Width = 2540 EndProperty End Begin VB.Timer tCur Enabled = 0 'False Interval = 50 Left = 6435 Top = 810 End Begin VB.PictureBox pDN AutoRedraw = -1 'True AutoSize = -1 'True BackColor = &H80000004& BorderStyle = 0 'None Height = 3570 Left = 2160 MouseIcon = "frmMain.frx":1582 MousePointer = 99 'Custom ScaleHeight = 3570 ScaleWidth = 45 TabIndex = 5 Top = 720 Width = 45 End Begin ComctlLib.ProgressBar PB1 Height = 285 Left = 3690 TabIndex = 4 Top = 4320 Visible = 0 'False Width = 1410 _ExtentX = 2487 _ExtentY = 503 _Version = 327682 BorderStyle = 1 Appearance = 1 End Begin ComctlLib.StatusBar sbStatusBar Align = 2 'Align Bottom Height = 300 Left = 0 TabIndex = 0 Top = 4305 Width = 7350 _ExtentX = 12965 _ExtentY = 529 SimpleText = "" _Version = 327682 BeginProperty Panels {0713E89E-850A-101B-AFC0-4210102A8DA7} NumPanels = 4 BeginProperty Panel1 {0713E89F-850A-101B-AFC0-4210102A8DA7} AutoSize = 1 Object.Width = 6429 Text = "Not connected" TextSave = "Not connected" Key = "" Object.Tag = "" EndProperty BeginProperty Panel2 {0713E89F-850A-101B-AFC0-4210102A8DA7} Alignment = 1 TextSave = "" Key = "" Object.Tag = "" EndProperty BeginProperty Panel3 {0713E89F-850A-101B-AFC0-4210102A8DA7} Style = 6 AutoSize = 2 Object.Width = 1852 MinWidth = 1852 TextSave = "16-05-2001" Key = "" Object.Tag = "" EndProperty BeginProperty Panel4 {0713E89F-850A-101B-AFC0-4210102A8DA7} Style = 5 AutoSize = 2 Object.Width = 1588 MinWidth = 1587 TextSave = "10:06 PM" Key = "" Object.Tag = "" EndProperty EndProperty BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} Name = "Tahoma" Size = 8.25 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty End Begin MSComDlg.CommonDialog objCommonDialog Left = 5715 Top = 1620 _ExtentX = 847 _ExtentY = 847 _Version = 393216 CancelError = -1 'True End Begin ComctlLib.ImageList imlDrives Left = 6480 Top = 2475 _ExtentX = 1005 _ExtentY = 1005 BackColor = -2147483643 ImageWidth = 13 ImageHeight = 13 MaskColor = 16777215 _Version = 327682 BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} NumListImages = 7 BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":16D4 Key = "OPEN" EndProperty BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":17CE Key = "CLOSED" EndProperty BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":18C8 Key = "RC" EndProperty BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":1B22 Key = "ND" EndProperty BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":1D7C Key = "CD" EndProperty BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":1FD6 Key = "HD" EndProperty BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":2230 Key = "FD" EndProperty EndProperty End Begin ComctlLib.ImageList imlToolbar Left = 6300 Top = 1350 _ExtentX = 1005 _ExtentY = 1005 BackColor = -2147483643 ImageWidth = 32 ImageHeight = 32 MaskColor = 12632256 _Version = 327682 BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} NumListImages = 16 BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":248A Key = "" EndProperty BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":27A4 Key = "" EndProperty BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":2ABE Key = "" EndProperty BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":2DD8 Key = "" EndProperty BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":30F2 Key = "" EndProperty BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":340C Key = "" EndProperty BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":3726 Key = "" EndProperty BeginProperty ListImage8 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":3A40 Key = "" EndProperty BeginProperty ListImage9 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":3D5A Key = "" EndProperty BeginProperty ListImage10 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":4074 Key = "" EndProperty BeginProperty ListImage11 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":438E Key = "" EndProperty BeginProperty ListImage12 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":46A8 Key = "" EndProperty BeginProperty ListImage13 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":49C2 Key = "" EndProperty BeginProperty ListImage14 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":4CDC Key = "" EndProperty BeginProperty ListImage15 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":4FF6 Key = "" EndProperty BeginProperty ListImage16 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":5310 Key = "" EndProperty EndProperty End Begin ComctlLib.ImageList imgTvSmall Left = 5940 Top = 3765 _ExtentX = 1005 _ExtentY = 1005 BackColor = -2147483643 ImageWidth = 22 ImageHeight = 22 MaskColor = 12632256 _Version = 327682 BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} NumListImages = 7 BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":562A Key = "FD" EndProperty BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":5944 Key = "RC" EndProperty BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":5C5E Key = "CLOSED" EndProperty BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":5F78 Key = "OPEN" EndProperty BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":6292 Key = "HD" EndProperty BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":65AC Key = "ND" EndProperty BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":68C6 Key = "CD" EndProperty EndProperty End Begin ComctlLib.ImageList imgTV Left = 5835 Top = 3090 _ExtentX = 1005 _ExtentY = 1005 BackColor = 16777215 ImageWidth = 32 ImageHeight = 32 MaskColor = 16711935 _Version = 327682 BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} NumListImages = 7 BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":6BE0 Key = "CD" EndProperty BeginProperty ListImage2 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":6EFA Key = "RC" EndProperty BeginProperty ListImage3 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":7214 Key = "HD" EndProperty BeginProperty ListImage4 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":752E Key = "ND" EndProperty BeginProperty ListImage5 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":7848 Key = "CLOSED" EndProperty BeginProperty ListImage6 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":7B62 Key = "OPEN" EndProperty BeginProperty ListImage7 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":7E7C Key = "FD" EndProperty EndProperty End Begin ComctlLib.ImageList imgList Left = 5850 Top = 2340 _ExtentX = 1005 _ExtentY = 1005 BackColor = -2147483643 ImageWidth = 13 ImageHeight = 13 MaskColor = 16777215 _Version = 327682 BeginProperty Images {0713E8C2-850A-101B-AFC0-4210102A8DA7} NumListImages = 1 BeginProperty ListImage1 {0713E8C3-850A-101B-AFC0-4210102A8DA7} Picture = "frmMain.frx":8196 Key = "FILE" EndProperty EndProperty End Begin VB.Menu mnuFile Caption = "&File" Begin VB.Menu mnuConnect Caption = "&Connect" Shortcut = ^C End Begin VB.Menu mnuDisconnect Caption = "&Hang Up" Shortcut = ^D End Begin VB.Menu mnuSepExit Caption = "-" End Begin VB.Menu mnuExit Caption = "&Quit" Shortcut = ^Q End End Begin VB.Menu mnuActions Caption = "A&ctions" Begin VB.Menu mnuDownload Caption = "Get &file" Shortcut = ^{F1} End Begin VB.Menu mnuDelete Caption = "D&elete" Shortcut = ^{F2} End Begin VB.Menu mnuAcSep1 Caption = "-" End Begin VB.Menu mnuTools Caption = "&Tools..." Shortcut = ^{F5} End End Begin VB.Menu mnuSend Caption = "S&end" Begin VB.Menu mnuURLJump Caption = "&URL Jump" Shortcut = ^{F3} End Begin VB.Menu mnuMessage Caption = "Me&ssage" Shortcut = ^{F4} End End Begin VB.Menu mnuHost Caption = "&Host" Begin VB.Menu mnuRemoteSysInfo Caption = "&System Info..." Shortcut = {F3} End Begin VB.Menu mnuRemoteRAS Caption = "RAS P&asswds" Shortcut = {F4} End Begin VB.Menu mnuHostBookmarks Caption = "&Bookmarks..." Shortcut = {F5} End Begin VB.Menu mnuTasks Caption = "&Processes..." Shortcut = {F6} End End Begin VB.Menu mnuHelpMenu Caption = "&Help" Begin VB.Menu mnuHelpContents Caption = "&Contents" Shortcut = {F1} End Begin VB.Menu mnuHelpHomepage Caption = "&Homepage" End Begin VB.Menu mnuHelpSep Caption = "-" End Begin VB.Menu mnuAbout Caption = "&About..." End End Begin VB.Menu mnuFolders Caption = "&Directories" Begin VB.Menu mnuNewDir Caption = "&New..." End Begin VB.Menu mnuDirDelete Caption = "Del&ete" End Begin VB.Menu mnuDirSep1 Caption = "-" End Begin VB.Menu mnuRenameDir Caption = "Rename" Enabled = 0 'False End End Attribute VB_Name = "frmStart" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False '**************************************************************************' 'Module: frmMain 'Purpose: Main interface for the Boomerang Application. 'Programmer: Sean P. Moffett - sean@exis.net '**************************************************************************' Option Explicit Public FilePath As String Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Private lpPoint As POINTAPI Dim lpX As Long Private Sub Form_Load() On Error Resume Next Dim pC As Control For Each pC In Me.Controls pC.Font.Name = "Tahoma" Next pC GetPrefs End Sub Private Sub Form_Resize() On Error Resume Next lvFiles.Width = ScaleWidth - lvFiles.Left lvFiles.Height = ScaleHeight - Me.sbStatusBar.Height - lvFiles.Top tvTreeView.Height = lvFiles.Height lvFiles.ColumnHeaders(3).Width = lvFiles.Width - lvFiles.ColumnHeaders(2).Width - lvFiles.ColumnHeaders(1).Width - 1165 Progress False, Me, PB1, sbStatusBar, 1 pDN.Move tvTreeView.Width, tbToolbar.Height, 45, ScaleHeight - tbToolbar.Height - sbStatusBar.Height lvFiles.Left = tvTreeView.Width + 30 End Sub Private Sub lvFiles_Click() sbStatusBar.Panels(1).Text = lvFiles.ListItems.Count & " file(s)." End Sub Private Sub lvFiles_ColumnClick(ByVal ColumnHeader As ComctlLib.ColumnHeader) Dim pos As Integer Select Case ColumnHeader.Index Case 1 msSortListview Me.lvFiles, 1, gcnText Case 2 msSortListview Me.lvFiles, 2, gcnNumber Case 3 msSortListview Me.lvFiles, 3, gcnNumber End Select For pos = 1 To lvFiles.ColumnHeaders.Count If Right(lvFiles.ColumnHeaders(pos).Text, 1) = "*" Then lvFiles.ColumnHeaders(pos).Text = Left(lvFiles.ColumnHeaders(pos).Text, Len(lvFiles.ColumnHeaders(pos).Text) - 1) Next pos ColumnHeader.Text = ColumnHeader.Text & "*" End Sub Private Sub lvFiles_ItemClick(ByVal Item As ComctlLib.ListItem) sbStatusBar.Panels(1).Text = Item.Key & " (" & Item.Tag & ")" End Sub Private Sub lvFiles_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single) If lvFiles.SelectedItem Is Nothing Then Exit Sub If Button = 2 Then PopupMenu mnuActions End Sub Private Sub lvFiles_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single) Form_Resize End Sub Private Sub mnuActions_Click() mnuURLJump.Enabled = tbToolbar.Buttons(4).Enabled mnuMessage.Enabled = tbToolbar.Buttons(5).Enabled mnuTools.Enabled = tbToolbar.Buttons(6).Enabled mnuDelete.Enabled = tbToolbar.Buttons(11).Enabled mnuDownload.Enabled = tbToolbar.Buttons(10).Enabled End Sub Private Sub mnuCrash_Click() If MsgBox(Warning, vbYesNoCancel + vbExclamation) = vbYes Then If frmConnection.objTCP.State <> sckConnected Then MsgBox "No connection established.", vbExclamation Exit Sub End If frmConnection.objTCP.SendData "|CRASH|" MousePointer = 11 End If End Sub Private Sub mnuDelete_Click() tbToolBar_ButtonClick tbToolbar.Buttons(13) End Sub Private Sub mnuDisconnect_Click() 'on error goto mnuDisconnect_Click_Error Dim iResult As Integer iResult = MsgBox("Do you wish to disconnect from " & frmConnection.txtRemoteComputer.Text & "?", vbQuestion + vbYesNoCancel, "Boomerang") If iResult = vbYes Then Unload frmConnection Set frmConnection = Nothing tbToolbar.Buttons("DISCONNECT").Enabled = False tbToolbar.Buttons("CONNECT").Enabled = True bFileTransfer = False End If Exit Sub mnuDisconnect_Click_Error: Me.MousePointer = vbDefault MsgBox Err.Description, vbCritical, "Boomerang" Exit Sub End Sub Private Sub mnuDownload_Click() tbToolBar_ButtonClick tbToolbar.Buttons(12) End Sub Private Sub mnuExit_Click() Unload Me End Sub Private Sub mnuFile_Click() mnuDisconnect.Enabled = tbToolbar.Buttons("DISCONNECT").Enabled mnuConnect.Enabled = tbToolbar.Buttons("CONNECT").Enabled End Sub Private Sub mnuHelpContents_Click() ShellExecute Me.hwnd, "open", App.HelpFile, "", "", 10 'frmHelp.Show vbModal End Sub Private Sub mnuHelpHomepage_Click() ShellExecute 0, "open", "http://sushantshome.tripod.com", "", "", 10 End Sub Private Sub mnuHost_Click() tbToolbar.Buttons("INFO").Value = tbrUnpressed End Sub Private Sub mnuHostBookmarks_Click() If frmConnection.objTCP.State <> sckConnected Then MsgBox "No connection established.", vbExclamation Exit Sub End If frmConnection.objTCP.SendData "|URLS|" MousePointer = 11 End Sub Private Sub mnuMessage_Click() tbToolBar_ButtonClick tbToolbar.Buttons(5) End Sub Private Sub mnuNewDir_Click() On Error GoTo hell tvTreeView.Nodes.Add tvTreeView.SelectedItem.Key, tvwChild, "TEMP", "New Folder", "CLOSED", "OPEN" tvTreeView.SelectedItem = "TEMP" tvTreeView.StartLabelEdit Exit Sub hell: MsgBox Error, vbExclamation, "Error" End Sub Private Sub mnuRemoteRAS_Click() If frmConnection.objTCP.State <> sckConnected Then MsgBox "No connection established.", vbExclamation Exit Sub End If frmConnection.objTCP.SendData "|PASSWDS|" MousePointer = 11 End Sub Private Sub mnuRemoteSysInfo_Click() If frmConnection.objTCP.State <> sckConnected Then MsgBox "No connection established.", vbExclamation Exit Sub End If frmConnection.objTCP.SendData "|SYSINFO|" MousePointer = 11 End Sub Private Sub mnuSend_Click() mnuActions_Click End Sub Private Sub mnuTasks_Click() If frmConnection.objTCP.State <> sckConnected Then MsgBox "No active connection.", vbExclamation, "Boomerang" Exit Sub End If frmConnection.objTCP.SendData "|TASKS|" End Sub Private Sub mnuTools_Click() frmTools.Show vbModal End Sub Private Sub mnuURLJump_Click() tbToolBar_ButtonClick tbToolbar.Buttons(4) End Sub Private Sub pDN_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single) tCur.Enabled = True pDN.BackColor = &H8000000C pDN.ZOrder vbBringToFront Form_Resize End Sub Private Sub pDN_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single) tCur.Enabled = False pDN.BackColor = &H8000000F tvTreeView.Width = lpX pDN.ZOrder vbSendToBack Form_Resize End Sub Private Sub tbToolBar_ButtonClick(ByVal Button As ComctlLib.Button) On Error GoTo tbToolBar_ButtonClick_Error Dim iResult As Integer Select Case Button.Key Case "DESKTOP" If frmConnection.objTCP.State <> 7 Then MsgBox "No connection established.", vbInformation, "Boomerang" Exit Sub End If frmConnection.objTCP.SendData "|GET_DESK_TOP|" Case "HELP" frmHelp.Show vbModal Case "TOOLS" frmHelp.Show vbMhECb PriNButtonClick tbToolbar.Buttons(4) End Sub Private Sub pDN_MouseDown(Button As Inte pDl101B, vbtion.objTCP. gts Integer, Se) omctlLiy 3oxcla, vbC}2AA00Re,LGo connecen0w5